<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
</body>
<script>
    var num = 1
    while (num <= 100){
        // num % 7 == 0 求7的倍数
        // num % 10 == 7 求个位数为7的数
        // parseInt(num / 10) == 7 求十位数为7的数
        if (num % 7 == 0 || num % 10 == 7 || parseInt(num / 10)  == 7){
            console.log(num)
        }
        num++
    }
</script>
</html>